function shanPing(){
	/*alert('Get');*/
	$('#shanping').css('display','none');
	$('html').css('overflow-y','scroll');
	$('body').css('overflow-y','scroll');
}

if(getCookie("loadState")=="true"){
//	alert(21);

	shanPing();
}else{
	$("#shanping").show();
	setCookie('loadState','true');

	var time = $('#shanping').find('.time').find('span').html();
	var timer = setInterval(function(){
		if(parseInt(time) <= 1){
			shanPing();
			clearInterval(timer);
		}else{
			time = time -1;
			$('#shanping').find('.time').find('span').html(time);
		}
	},1000);

}
	
	function setCookie(name,value)
	{
//	    var Days = 1;

//	    var exp = new Date();

//	    exp.setTime(exp.getTime() + Days*24*60*60*1000);

	    document.cookie = name + "="+ escape(value) + ";path=/";//;expires=" + exp.toGMTString()

	}
	function getCookie(objname){
		//获取指定名称的cookie的值

		var arrstr = document.cookie.split("; ");
		for(var i = 0;i < arrstr.length;i ++){
			var temp = arrstr[i].split("=");
			if(temp[0] == objname) return unescape(temp[1]);
		}
	}